.class public Les/i40;
.super Lcom/estrongs/fs/a;
.source "SearchFileObject.java"


# instance fields
.field private p:Lcom/estrongs/fs/g;

.field public q:I

.field private r:Ljava/lang/String;

.field private s:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Lcom/estrongs/fs/g;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/estrongs/fs/a;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->l2(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 4
    iput-object p1, p0, Les/i40;->r:Ljava/lang/String;

    .line 5
    iput-object p2, p0, Les/i40;->s:Ljava/lang/String;

    goto :goto_1

    :cond_0
    const-string p2, "/"

    .line 6
    invoke-virtual {p1, p2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p3}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p3}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    :goto_0
    move-object v0, p1

    .line 7
    :goto_1
    iput-object v0, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    .line 8
    invoke-interface {p3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->c:Ljava/lang/String;

    .line 9
    iput-object p3, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    .line 10
    invoke-interface {p3}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/fs/a;->d:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public g()Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->g()Z

    move-result v0

    return v0
.end method

.method public getPath()Ljava/lang/String;
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    if-nez v0, :cond_2

    .line 2
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    .line 3
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 4
    iget-object v1, p0, Les/i40;->s:Ljava/lang/String;

    if-eqz v1, :cond_0

    .line 5
    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 6
    :cond_0
    iget-object v1, p0, Les/i40;->r:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->g0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    :goto_0
    const-string v1, "/"

    const-string v2, "#"

    .line 7
    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 8
    iget-object v2, p0, Les/i40;->r:Ljava/lang/String;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    invoke-virtual {v2, v3}, Ljava/lang/String;->charAt(I)C

    move-result v2

    const/16 v3, 0x2f

    if-ne v2, v3, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Les/i40;->r:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Les/i40;->r:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    iput-object v0, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    .line 9
    :cond_2
    invoke-super {p0}, Lcom/estrongs/fs/a;->getPath()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public lastModified()J
    .locals 2

    .line 1
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    return-wide v0
.end method

.method public length()J
    .locals 2

    .line 1
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v0

    return-wide v0
.end method

.method protected m()Lcom/estrongs/fs/l;
    .locals 1

    .line 1
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/l;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    sget-object v0, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    return-object v0

    .line 3
    :cond_0
    sget-object v0, Lcom/estrongs/fs/l;->d:Lcom/estrongs/fs/l;

    return-object v0
.end method

.method public n()Lcom/estrongs/fs/g;
    .locals 1

    .line 1
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    return-object v0
.end method

.method public setName(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Les/i40;->getPath()Ljava/lang/String;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/fs/a;->d:Ljava/lang/String;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/fs/a;->b:Ljava/lang/String;

    invoke-static {v0}, Les/o10;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->l2(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "#"

    .line 4
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    .line 5
    :cond_1
    invoke-super {p0, p1}, Lcom/estrongs/fs/a;->setName(Ljava/lang/String;)V

    .line 6
    iget-object v0, p0, Les/i40;->p:Lcom/estrongs/fs/g;

    invoke-interface {v0, p1}, Lcom/estrongs/fs/g;->setName(Ljava/lang/String;)V

    return-void
.end method
